package com.qq.xrx1002.androidgame;

import org.cocos2d.nodes.CCSprite;
import java.util.Locale;

/**
 * Created by Alyson on 2018/11/11.
 */
public class PlantCard {//设置2个精灵：一个亮精灵，一个暗精灵
    private int id;
    private CCSprite light;
    private CCSprite dark;

    public PlantCard(int id) {
        this.id = id;
        light=CCSprite.sprite(String.format(Locale.CHINA,"choose/p%02d.png",id));
        dark=CCSprite.sprite(String.format(Locale.CHINA,"choose/p%02d.png",id));
        dark.setOpacity(100);//设置透明度
    }

    public int getId() {
        return id;
    }

    public CCSprite getLight() {
        return light;
    }

    public CCSprite getDark() {
        return dark;
    }
}
